<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>keyevent</title>

</head>
<body>

<div id="app">
    <count></count>
</div>
</body>
<script src="../node_modules/vue/dist/vue.js"></script>
<script>
  let count = {
      template:`<button @click="count++">{{count}}<button/>`,
      data(){
          return{
              count:0
          }
      }
  }
    let vm = new Vue({
        el: "#app",
        components:{
            count:count
        }
    })
</script>
</html>